# goods.urls
from django.urls import path, re_path
from . import views

# 设置应用程序命名空间
from .views import HostGoodsView, DetailView

app_name = 'goods'
urlpatterns = [
    # 商品列表页
    path('list/<int:category_id>/<int:page_num>/', views.ListView.as_view(),name='list'),
    #商品详情
    re_path('detail/(?P<sku_id>\d+)/', views.DetailView.as_view(),name='detail'),
    path('hot/<int:category_id>/',HostGoodsView.as_view(),name='hot')
]
